import request from '@/utils/request'

export function findDataTypeList() {
    return request({
        url: '/pubDatas/dataTypeList',
        method: 'get'
    })
}
export function findListByType(type) {
    return request({
        url: '/pubDatas/'+type+'/list',
        method: 'get'
    })
}
export function saveDetail(data) {
    return request({
        url: '/pubDatas/saveDetail',
        method: 'post',
        data: data
    })
}
export function deleted(id) {
    return request({
        url: '/pubDatas/'+id,
        method: 'delete',
    })
}